//--------------------------------------------------------------------
#ifndef _dkfile_twi_h
#define _dkfile_twi_h
//--------------------------------------------------------------------

#include "dkfile.h"

//--------------------------------------------------------------------


struct _dk_twi
{
	uint8_t portnum;

	uint8_t address;
};


extern int dktwi_open( DKFILE *stream );
extern int dktwi_close( void *deviceinfo );
extern int dktwi_read_byte(void *deviceinfo);
extern int dktwi_write_byte(void *deviceinfo, int c);
extern int dktwi_read_bytes(void *deviceinfo, int n, void *ptr);
extern int dktwi_write_bytes(void *deviceinfo, int n, void *ptr);
extern int dktwi_seek(void *deviceinfo, off_t offset, int whence);
extern fpos_t dktwi_pos(void *deviceinfo);
extern int dktwi_eof(void *deviceinfo);
extern int dktwi_error(void *deviceinfo);


extern struct _dkdeviceio twideviceio;


//--------------------------------------------------------------------
#endif	// !_dkfile_twi_h
//--------------------------------------------------------------------
